class Activity < ActiveRecord::Migration
  def self.up
    create_table :activities do |t|
      t.column :task_id, :integer
      t.column :user_id, :integer
      t.column :started_on, :datetime
      t.column :duration, :time
      t.column :state_id, :integer
    end


  end

  def self.down
    drop_table :activities
  end
end
